#!/bin/bash


blkid



read -p "write tf address"  addr


tf1="${addr}1"  &&
tf2="${addr}2"  &&



mount /dev/$tf1  /media/yellow/uboot  
mount /dev/$tf2  /media/yellow/root   

cp /home/yellow/sdk/buildroot-2021.02.4/output/images/rootfs.tar  /media/yellow/root  &&

cd /media/yellow/root   &&
tar -xvf  rootfs.tar  &&
rm  rootfs.tar  &&

ls  -l $root  

